//
//  SISSNetworkingManager+Message.h
//  SISSAPP
//
//  Created by 优房网 on 2017/5/4.
//  Copyright © 2017年 优房网. All rights reserved.
//

#import "SISSNetworkingManager.h"

@class SISSLatestNotificationModel;
@class SISSNotificationRecordModel;

@interface SISSNetworkingManager (Message)


/**
 5.1.1 获取im账号 GET请求

 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestIMAccountWithSuccess:(void(^)(NSDictionary *userData))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 5.3.1 获取最新协会公告 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestLatestNoticeRecordWithSuccess:(void(^)(SISSLatestNotificationModel *noticeRecordModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 5.3.2 获取最新系统消息 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestLastSystemMessageWithSuccess:(void(^)(SISSLatestNotificationModel *systemMessageModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 5.3.3 获取协会公告 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestNoticeRecordWithSuccess:(void(^)(NSArray<SISSNotificationRecordModel *> *notiRecordArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 5.3.4 获取系统消息 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestSystemMessageWithSuccess:(void(^)(NSArray<SISSNotificationRecordModel *> *systemMessageArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 5.3.5 清空系统消息 GET请求

 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)clearSystemMessageWithSuccess:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

@end
